package com.shycloud.mido.organ.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 教师-学生 关联表
 *
 * @author nianhua.jiang
 * @date 2020/7/13 19:34
 */
@Data
@TableName("org_teacher_student")
@EqualsAndHashCode(callSuper = true)
public class TeacherStudentEntity extends Model<TeacherStudentEntity> {

	private static final long serialVersionUID = 1L;

	/** Id */
	private Integer id;

	/** 机构ID */
	private Integer orgId;

	/** 教师Id */
	@TableField("teacher_id")
	private String teacherId;

	/** 学生ID */
	private String studentId;

	/** 师生关系创建时间 */
	@TableField(value = "create_time")
	private LocalDateTime createTime;
}
